<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:replace="~{common/dialogCss :: dialogCss}"></head>
<body class="dialog">
	<div class="portlet light portlet-fit bordered">
		<div class="portlet-body">
			<div class="row">
				<div class="col-md-12">
					<h3>基本信息</h3>
					<form id="dict_add_form">
						<table class="table table-bordered table-striped">
							<tbody>
								<tr>
									<td style="width: 15%">
										<span class="pull-right"><font color="red">*</font>编码：</span>
									</td>
									<td style="width: 35%">
	                                    <input type="text" name="code" class="form-control input-sm" placeholder="">
	                                    <span class="help-block"> 请输入标字典编码. </span>
									</td>
									<td style="width: 15%">
										<span class="pull-right">描述：</span>
									</td>
									<td style="width: 35%">
	                                    <input type="text" name="desc" class="form-control input-sm" placeholder="">
	                                    <span class="help-block"> 请输入标描述. </span>
									</td>
								</tr>
								<tr>
									<td style="width: 15%">
										<span class="pull-right"><font color="red">*</font>排序：</span>
									</td>
									<td style="width: 35%">
	                                    <input type="text" name="sort"  class="form-control input-sm" placeholder="">
	                                    <span class="help-block"> 请输入排序数字. </span>
									</td>
									<td style="width: 15%">
										<span class="pull-right"><font color="red">*</font>状态：</span>
									</td>
									<td style="width: 35%">
	                                    <label class="radio-inline"><input checked="checked" name="status" type="radio" value="1"/>启用</label>
										<label class="radio-inline"><input name="status" type="radio" value="0"/>禁用</label>
										<span class="help-block"> 请输入状态. </span>
									</td>
								</tr>
							</tbody>
						</table>
					</form>
				</div>
			</div>
			<div class="row">
				<div class="col-md-12">
					<h3>字典值</h3>
					<div class="form-group">
						<button class="btn btn-sm btn-success" type="button" onclick="add_dict_value(this)">
							<i aria-hidden="true" class="fa fa-plus"></i>添加
						</button>
					</div>
					<div class="from-group form-repeater">
						<div class="form-group value_code_desc">
							<input type="text" name="valueCode" class="form-control input-inline input-sm" placeholder="值">
							<input type="text" name="valueDesc" class="form-control input-inline input-sm" placeholder="描述">
							<button class="btn btn-success btn-sm" type="button" onclick="delete_dict_value(this)">
								<i aria-hidden="true" class="fa fa-trash"></i>
							</button>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:replace="~{common/dialogJs :: dialogJs}">...</div>
	<script type="text/javascript">
		require(["./static/pages/scripts/system/dict"], function(dict){
			dict.initAddDialog();
		});
	</script>
</body>
</html>